package com.hulk.ratel.service.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by cmt on 2017/11/9.
 * 被扫请求参数
 */
@ToString(callSuper = true)
@Getter
@Setter
public class TestRatelReqDTO extends BaseHeadReqDTO {

    private static final long serialVersionUID = -1393169334479876725L;

    //订单总金额
    @NotBlank(message = "{up.TestRatelReqDTO.key}")
    private String key1;

    //订单总金额
    @NotBlank(message = "{up.TestRatelReqDTO.value}")
    @Pattern(regexp = "^\\+?[1-9][0-9]*$", message = "值非法，非正整数")
    private String value1;

    //订单描述
    private String desc1;


}
